#include <set>
#include <iostream>

int main()
{
    int myints[]= {10,20,30,40,50};
    std::set<int> second (myints, myints+5);        // range
    std::set<int>::iterator it = second.begin();
    while(it != second.end())
    {
        std::cout << *it << std::endl;
        ++it;
    }
    return 0;
}